<div class="sidebar-nav" style="width: 13%">
    <a href="{:U('Index/Index2')}" class="nav-header">
        <i class="icon-dashboard"></i>首页
    </a>
  <neq name="Think.session.userlevel" value="6">

    <if condition="$Think.session.userlevel neq '3'">
        <if condition="$Think.session.userlevel neq '4'">
        <a href="#bespeak-menu" class="nav-header collapsed" data-toggle="collapse">
            <i class="icon-edit"></i>预约<i class="icon-chevron-up"></i>
        </a>
        <if condition="$Think.const.CONTROLLER_NAME eq 'Bespeak'">
        <ul id="bespeak-menu" class="nav nav-list collapse in" >
            <else />
        <ul id="bespeak-menu" class="nav nav-list collapse" >

        </if>
            <li ><a href="{:U('Bespeak/Index')}">预约管理</a></li>
        </ul>
        </if>
        <if condition="$Think.session.userlevel neq '5'">
        <a href="#accounts-menu" class="nav-header" data-toggle="collapse"><i class="icon-briefcase"></i>档案管理<i class="icon-chevron-up"></i></a>
        <ul id="accounts-menu" class="nav nav-list collapse <if condition="$Think.const.CONTROLLER_NAME eq 'Archives'">in</if>">
            <li ><a href="{:U('Archives/Teacher')}">教师信息管理</a></li>
            <li ><a href="{:U('Archives/Student')}">学员信息管理</a></li>
        </ul>

        <a href="#error-menu" class="nav-header collapsed" data-toggle="collapse"><i class="icon-book"></i>班次信息<i class="icon-chevron-up"></i></a>
        <ul id="error-menu" class="nav nav-list collapse <if condition="$Think.const.CONTROLLER_NAME eq 'Curriculum'">in</if>">
            <li ><a href="{:U('Curriculum/Classes')}">班次信息管理</a></li>
            <li ><a href="{:U('Curriculum/Currinfo')}">课程信息管理</a></li>

        </ul>
    </if>
   

    <if condition="$Think.session.userlevel eq '1'">
        <a href="#legal-menu" class="nav-header" data-toggle="collapse"><i class="icon-user"></i>用户管理<i class="icon-chevron-up"></i></a>
        <ul id="legal-menu" class="nav nav-list collapse <if condition="$Think.const.CONTROLLER_NAME eq 'Useradmin'">in</if>">
            <li ><a href="{:U('Useradmin/Userinfo')}">用户信息管理</a></li>

        </ul>
    </if>

    <if condition="$Think.session.userlevel neq '3'">
        <a href="#lb-menu" class="nav-header" data-toggle="collapse"><i class="icon-reorder"></i>类别管理<i class="icon-chevron-up"></i></a>
        <ul id="lb-menu" class="nav nav-list collapse <if condition="$Think.const.CONTROLLER_NAME eq 'Category'">in</if>">
            <li><a href="{:U('Category/Classesadmin')}">教室表管理</a></li>
            <li><a href="{:U('Category/Addressadmin')}">地区表管理</a></li>
            <li><a href="{:U('Category/Studentadmin',array('lbq'=>10001))}">学员类别管理</a></li>
            <li><a href="{:U('Category/Studentadmin',array('lbq'=>10002))}">课程名称管理</a></li>
            <li><a href="{:U('Category/Studentadmin',array('lbq'=>10003))}">班次类别管理</a></li>
        </ul>

        <a href="#dr-menu" class="nav-header" data-toggle="collapse"><i class="icon-magnet"></i>信息导入<i class="icon-chevron-up"></i></a>
        <ul id="dr-menu" class="nav nav-list collapse <if condition="$Think.const.CONTROLLER_NAME eq 'Dr'">in</if>">
            <li><a href="{:U('Dr/Peixunadmin')}">培训表导入</a></li>
            <li><a href="{:U('Dr/PeixunList')}">培训信息表管理</a></li>
        </ul>
    </if>

    <if condition="$Think.session.userlevel eq '1'">
        <a href="#sql-menu" class="nav-header" data-toggle="collapse"><i class="icon-search"></i>SQL查询<i class="icon-chevron-up"></i></a>
        <ul id="sql-menu" class="nav nav-list collapse <if condition="$Think.const.CONTROLLER_NAME eq 'Sql'">in</if>">
            <li ><a href="{:U('Sql/Sql')}">SQL语句</a></li>
        </ul>
    </if>

    <if condition="$Think.session.userlevel eq '1'">
        <a href="#log-menu" class="nav-header" data-toggle="collapse"><i class="icon-list-alt"></i>日志管理<i class="icon-chevron-up"></i></a>
        <ul id="log-menu" class="nav nav-list collapse <if condition="$Think.const.CONTROLLER_NAME eq 'Log'">in</if>">
            <li ><a href="{:U('Log/Index')}">日志查询</a></li>
        </ul>
    </if>
</neq>
    <a href="#gy-menu" class="nav-header" data-toggle="collapse"><i class="icon-th"></i>关于<i class="icon-chevron-up"></i></a>
    <ul id="gy-menu" class="nav nav-list collapse <if condition="$Think.const.CONTROLLER_NAME eq 'About'">in</if>">
        <li><a href="{:U('About/Help')}">使用帮助</a></li>
        <li><a href="{:U('About/Version')}">版本信息</a></li>
    </ul>
</div>